<template>
  <div class="full" v-show="isShow">
    <div class="waring-box">
      <h1>警告</h1>
      <h2>{{waringMsg}}</h2>
      <button @click="closeBox">确定</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'waring',
  props: {
    isShow: {
      type: Boolean,
      default: true
    },
    closeBox: {
      type: Function
    },
    waringMsg: {
      type: String,
      default: '发生未知错误!'
    }
  }
}
</script>
